package com.zx.template.base;

/**
 * @author szh
 * @date 2022/8/3 13:46
 */
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * describe:
 *

 **/
@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class PageBean<T> implements Serializable {

    private static final long serialVersionUID = -3200538385338884588L;

    @ApiModelProperty(value = "数据集")
    private List<T> content;

    @ApiModelProperty(value = "总数", example = "100")
    private Integer total;

    @ApiModelProperty(value = "当前页数", example = "1")
    private Integer current;

    @ApiModelProperty(value = "每页数量", example = "10")
    private Integer size;
}